/*
 * DataPlayer.java
 *
 * Created on 14 ?????? 2007, 17:23
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package DataFiles;

import java.util.Vector;

/**
 * This class keeps all data about a specific player.
 * @author Yotam
 */
public class DataPlayer {
    private String name;
    private int score;
    private int hitRatio;
    //private DataGamePlayer gamePlayer;
    private Vector <DataGamePlayer> gamesOfPlayer;
    
    /**
     * Creates a new instance of DataPlayer
     */
    public DataPlayer(String _name, int _score ,Vector <DataGamePlayer> _gamesOfPlayer) {
        name = _name;
        score =_score;
        gamesOfPlayer = _gamesOfPlayer;
        hitRatio=0;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getScore() {
        return score;
    }

     public void setScore(int score) {
        this.score = score;
    }
    
        public int gethitRatio() {
        return hitRatio;
     }

    public void sethitRatio(int hitRatio) {
        this.hitRatio = hitRatio;
    }
    
    public Vector<DataGamePlayer> getGamesOfPlayer() {
        return gamesOfPlayer;
    }

    public void setGameplayer(Vector<DataGamePlayer> gameplayer) {
        this.gamesOfPlayer = gameplayer;
    }

}
